﻿#if USE_UNI_LUA
using LuaAPI = UniLua.Lua;
using RealStatePtr = UniLua.ILuaState;
using LuaCSFunction = UniLua.CSharpFunctionDelegate;
#else
using LuaAPI = XLua.LuaDLL.Lua;
using RealStatePtr = System.IntPtr;
using LuaCSFunction = XLuaBase.lua_CSFunction;
#endif

using XLua;
using System.Collections.Generic;


namespace XLua.CSObjectWrap
{
    using Utils = XLua.Utils;
    public class YoozooManagersGameSceneRuntimeProcedureInternalBaseProcedureWrap 
    {
        public static void __Register(RealStatePtr L)
        {
			ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
			System.Type type = typeof(Yoozoo.Managers.GameScene.Runtime.Procedure.Internal.BaseProcedure);
			Utils.BeginObjectRegister(type, L, translator, 0, 9, 5, 2);
			
			Utils.RegisterFunc(L, Utils.METHOD_IDX, "Dispose", _m_Dispose);
			Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetInfo", _m_SetInfo);
			Utils.RegisterFunc(L, Utils.METHOD_IDX, "Success", _m_Success);
			Utils.RegisterFunc(L, Utils.METHOD_IDX, "Fail", _m_Fail);
			Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnFinish", _m_OnFinish);
			Utils.RegisterFunc(L, Utils.METHOD_IDX, "Start", _m_Start);
			Utils.RegisterFunc(L, Utils.METHOD_IDX, "Stop", _m_Stop);
			Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnBegin", _m_OnBegin);
			Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnStop", _m_OnStop);
			
			
			Utils.RegisterFunc(L, Utils.GETTER_IDX, "State", _g_get_State);
            Utils.RegisterFunc(L, Utils.GETTER_IDX, "Name", _g_get_Name);
            Utils.RegisterFunc(L, Utils.GETTER_IDX, "Parenet", _g_get_Parenet);
            Utils.RegisterFunc(L, Utils.GETTER_IDX, "Root", _g_get_Root);
            Utils.RegisterFunc(L, Utils.GETTER_IDX, "Record", _g_get_Record);
            
			Utils.RegisterFunc(L, Utils.SETTER_IDX, "Parenet", _s_set_Parenet);
            Utils.RegisterFunc(L, Utils.SETTER_IDX, "Root", _s_set_Root);
            
			
			Utils.EndObjectRegister(type, L, translator, null, null,
			    null, null, null);

		    Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0);
			
			
            
			
			
			
            Utils.RegisterFunc(L, Utils.CLS_IDX, "New", __CreateInstanceNew);
			Utils.EndClassRegister(type, L, translator);
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int __CreateInstance(RealStatePtr L)
        {
            return LuaAPI.luaL_error(L, "Yoozoo.Managers.GameScene.Runtime.Procedure.Internal.BaseProcedure does not have a constructor!");
        }

        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int __CreateInstanceNew(RealStatePtr L)
        {
            return LuaAPI.luaL_error(L, "Yoozoo.Managers.GameScene.Runtime.Procedure.Internal.BaseProcedure does not have a constructor!");
        }

        
		
        
		
        
        
        
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_Dispose(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
                Yoozoo.Managers.GameScene.Runtime.Procedure.Internal.BaseProcedure gen_to_be_invoked = (Yoozoo.Managers.GameScene.Runtime.Procedure.Internal.BaseProcedure)translator.FastGetCSObj(L, 1);
            
            
                
                {
                    
                    gen_to_be_invoked.Dispose(  );
                    
                    
                    
                    return 0;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_SetInfo(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
                Yoozoo.Managers.GameScene.Runtime.Procedure.Internal.BaseProcedure gen_to_be_invoked = (Yoozoo.Managers.GameScene.Runtime.Procedure.Internal.BaseProcedure)translator.FastGetCSObj(L, 1);
            
            
                
                {
                    object[] _param = (object[])translator.GetObject(L, 2, typeof(object[]));
                    
                    gen_to_be_invoked.SetInfo( _param );
                    
                    
                    
                    return 0;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_Success(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
                Yoozoo.Managers.GameScene.Runtime.Procedure.Internal.BaseProcedure gen_to_be_invoked = (Yoozoo.Managers.GameScene.Runtime.Procedure.Internal.BaseProcedure)translator.FastGetCSObj(L, 1);
            
            
                
                {
                    
                    gen_to_be_invoked.Success(  );
                    
                    
                    
                    return 0;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_Fail(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
                Yoozoo.Managers.GameScene.Runtime.Procedure.Internal.BaseProcedure gen_to_be_invoked = (Yoozoo.Managers.GameScene.Runtime.Procedure.Internal.BaseProcedure)translator.FastGetCSObj(L, 1);
            
            
                
                {
                    
                    gen_to_be_invoked.Fail(  );
                    
                    
                    
                    return 0;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_OnFinish(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
                Yoozoo.Managers.GameScene.Runtime.Procedure.Internal.BaseProcedure gen_to_be_invoked = (Yoozoo.Managers.GameScene.Runtime.Procedure.Internal.BaseProcedure)translator.FastGetCSObj(L, 1);
            
            
                
                {
                    bool _success = LuaAPI.lua_toboolean(L, 2);
                    
                    gen_to_be_invoked.OnFinish( _success );
                    
                    
                    
                    return 0;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_Start(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
                Yoozoo.Managers.GameScene.Runtime.Procedure.Internal.BaseProcedure gen_to_be_invoked = (Yoozoo.Managers.GameScene.Runtime.Procedure.Internal.BaseProcedure)translator.FastGetCSObj(L, 1);
            
            
                
                {
                    
                    gen_to_be_invoked.Start(  );
                    
                    
                    
                    return 0;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_Stop(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
                Yoozoo.Managers.GameScene.Runtime.Procedure.Internal.BaseProcedure gen_to_be_invoked = (Yoozoo.Managers.GameScene.Runtime.Procedure.Internal.BaseProcedure)translator.FastGetCSObj(L, 1);
            
            
                
                {
                    
                    gen_to_be_invoked.Stop(  );
                    
                    
                    
                    return 0;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_OnBegin(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
                Yoozoo.Managers.GameScene.Runtime.Procedure.Internal.BaseProcedure gen_to_be_invoked = (Yoozoo.Managers.GameScene.Runtime.Procedure.Internal.BaseProcedure)translator.FastGetCSObj(L, 1);
            
            
                
                {
                    
                    gen_to_be_invoked.OnBegin(  );
                    
                    
                    
                    return 0;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_OnStop(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
                Yoozoo.Managers.GameScene.Runtime.Procedure.Internal.BaseProcedure gen_to_be_invoked = (Yoozoo.Managers.GameScene.Runtime.Procedure.Internal.BaseProcedure)translator.FastGetCSObj(L, 1);
            
            
                
                {
                    
                    gen_to_be_invoked.OnStop(  );
                    
                    
                    
                    return 0;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            
        }
        
        
        
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _g_get_State(RealStatePtr L)
        {
		    try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
			
                Yoozoo.Managers.GameScene.Runtime.Procedure.Internal.BaseProcedure gen_to_be_invoked = (Yoozoo.Managers.GameScene.Runtime.Procedure.Internal.BaseProcedure)translator.FastGetCSObj(L, 1);
                translator.Push(L, gen_to_be_invoked.State);
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            return 1;
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _g_get_Name(RealStatePtr L)
        {
		    try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
			
                Yoozoo.Managers.GameScene.Runtime.Procedure.Internal.BaseProcedure gen_to_be_invoked = (Yoozoo.Managers.GameScene.Runtime.Procedure.Internal.BaseProcedure)translator.FastGetCSObj(L, 1);
                LuaAPI.lua_pushstring(L, gen_to_be_invoked.Name);
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            return 1;
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _g_get_Parenet(RealStatePtr L)
        {
		    try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
			
                Yoozoo.Managers.GameScene.Runtime.Procedure.Internal.BaseProcedure gen_to_be_invoked = (Yoozoo.Managers.GameScene.Runtime.Procedure.Internal.BaseProcedure)translator.FastGetCSObj(L, 1);
                translator.PushAny(L, gen_to_be_invoked.Parenet);
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            return 1;
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _g_get_Root(RealStatePtr L)
        {
		    try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
			
                Yoozoo.Managers.GameScene.Runtime.Procedure.Internal.BaseProcedure gen_to_be_invoked = (Yoozoo.Managers.GameScene.Runtime.Procedure.Internal.BaseProcedure)translator.FastGetCSObj(L, 1);
                translator.PushAny(L, gen_to_be_invoked.Root);
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            return 1;
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _g_get_Record(RealStatePtr L)
        {
		    try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
			
                Yoozoo.Managers.GameScene.Runtime.Procedure.Internal.BaseProcedure gen_to_be_invoked = (Yoozoo.Managers.GameScene.Runtime.Procedure.Internal.BaseProcedure)translator.FastGetCSObj(L, 1);
                translator.Push(L, gen_to_be_invoked.Record);
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            return 1;
        }
        
        
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _s_set_Parenet(RealStatePtr L)
        {
		    try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
			
                Yoozoo.Managers.GameScene.Runtime.Procedure.Internal.BaseProcedure gen_to_be_invoked = (Yoozoo.Managers.GameScene.Runtime.Procedure.Internal.BaseProcedure)translator.FastGetCSObj(L, 1);
                gen_to_be_invoked.Parenet = (Yoozoo.Managers.GameScene.Runtime.Procedure.Base.IProcedureComposite)translator.GetObject(L, 2, typeof(Yoozoo.Managers.GameScene.Runtime.Procedure.Base.IProcedureComposite));
            
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            return 0;
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _s_set_Root(RealStatePtr L)
        {
		    try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
			
                Yoozoo.Managers.GameScene.Runtime.Procedure.Internal.BaseProcedure gen_to_be_invoked = (Yoozoo.Managers.GameScene.Runtime.Procedure.Internal.BaseProcedure)translator.FastGetCSObj(L, 1);
                gen_to_be_invoked.Root = (Yoozoo.Managers.GameScene.Runtime.Procedure.Base.IProcedure)translator.GetObject(L, 2, typeof(Yoozoo.Managers.GameScene.Runtime.Procedure.Base.IProcedure));
            
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            return 0;
        }
        
		
		
		
		
    }
}
